﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="changeProfile.ascx.cs" Inherits="Pages_changeProfile" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<style type="text/css">
    .style1
    {
        width: 73px;
    }
    .style3
    {
        width: 69px;
    }
    .style4
    {
        width: 53px;
    }
    .style5
    {
        width: 73px;
        text-align: right;
    }
    .style6
    {
        width: 90px;
        text-align: left;
    }
    .style7
    {
        width: 73px;
        text-align: left;
    }
</style>

<asp:MultiView ID="mvwChangeProfile" runat="server">
    <asp:View ID="vwChangeProfileMain" runat="server">
        <table style="width:100%;">
            <tr>
                <td class="style5">
                    &nbsp;</td>
                <td>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style7">
                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        Text="Username:">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtUserName" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        ReadOnly="True" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
                        Width="170px">
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td class="style7">
                    <dx:ASPxLabel ID="ASPxLabel2" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        Text="Full name:">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtFullName" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" Width="170px">
                    </dx:ASPxTextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtFullName" Display="None" 
                        ErrorMessage="Full name is not be blank!" SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style7">
                    <dx:ASPxLabel ID="ASPxLabel3" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        Text="Gender:">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <table style="width:100%;">
                        <tr>
                            <td class="style4">
                                <dx:ASPxRadioButton ID="rdbMale" runat="server" 
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                                    GroupName="gender" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
                                    Text="Male">
                                </dx:ASPxRadioButton>
                            </td>
                            <td>
                                <dx:ASPxRadioButton ID="rdbFeMale" runat="server" 
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                                    GroupName="gender" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
                                    Text="Female">
                                </dx:ASPxRadioButton>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="style7">
                    <dx:ASPxLabel ID="ASPxLabel4" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        Text="Email:">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtEmail" runat="server" 
                        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                        SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" Width="170px">
                    </dx:ASPxTextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtEmail" Display="None" ErrorMessage="Email is invalid!" 
                        SetFocusOnError="True" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtEmail" Display="None" 
                        ErrorMessage="Email is not be blank!" SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td>
                    <table style="width:100%;">
                        <tr>
                            <td class="style3">
                                <dx:ASPxButton ID="btUpadte" runat="server" 
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                                    onclick="btUpadte_Click" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
                                    Text="Update" AutoPostBack="False">
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton ID="btCancel" runat="server" 
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                                    PostBackUrl="~/Default.aspx" 
                                    SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" Text="Cancel">
                                </dx:ASPxButton>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </asp:View>
    <asp:View ID="vwChangeProfileStatus" runat="server">
        <dx:ASPxLabel ID="lbChangProflieStatus" runat="server" 
            CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx">
        </dx:ASPxLabel>
        <dx:ASPxButton ID="btChangeProfleOk" runat="server" 
            CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
            onclick="btChangeProfleOk_Click" 
            SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" Text="Ok">
        </dx:ASPxButton>
    </asp:View>
</asp:MultiView>

